|
Foxit PDF SDK
|
此类可用于进行输出预览。输出预览是预览分色和测试不同色彩配置文件。 在使用此类之前,请确保函数 FoxitPDFSDKPython2.Library.SetDefaultICCProfilesPath 已被成功调用; 否则在使用此类进行输出预览时可能会出现意外错误或结果。 目前,此功能在Linux ARM和Mac ARM平台上不受支持。 更多...
Public 成员函数 | |
| def | OutputPreview (pdf_doc) |
| 构造函数,带参数。 更多... | |
| def | OutputPreview (other) |
| 构造函数,通过另一个输出预览对象。 更多... | |
| def | EnableSimulateOverprint (is_to_simulate_overprint) |
| 设置是否启用仿真叠印的标志。 更多... | |
| def | GeneratePreviewBitmap (page, matrix, renderer) |
| 为PDF页面生成输出预览位图。 更多... | |
| def | GetPlates (colorant_type) |
| 获取分色版。 更多... | |
| def | GetSpotPlateColor (plate_name) |
| 获取版的颜色值。 更多... | |
| def | IsChecked (plate_name) |
| 检查版是否被选中。 更多... | |
| def | IsEmpty () |
| 检查当前对象是否为空。 更多... | |
| def | SetCheckStatus (plate_name, to_check) |
| 设置版的检查状态。 更多... | |
| def | SetShowType (show_type) |
| 设置显示类型。 更多... | |
| def | SetSimulationProfile (icc_profile_path) |
| 设置仿真ICC配置文件路径。 更多... | |
静态 Public 属性 | |
| e_ColorantTypeProcess = _fsdk.OutputPreview_e_ColorantTypeProcess | |
| 着色剂类型:印刷色。 | |
| e_ColorantTypeSpot = _fsdk.OutputPreview_e_ColorantTypeSpot | |
| 着色剂类型:专色。 | |
| e_ShowAll = _fsdk.OutputPreview_e_ShowAll | |
| 如果设置,显示全部。 | |
| e_ShowCalGray = _fsdk.OutputPreview_e_ShowCalGray | |
| 如果设置,仅显示CalGray。 | |
| e_ShowCalibrated = _fsdk.OutputPreview_e_ShowCalibrated | |
| 如果设置,仅显示校准色彩。 | |
| e_ShowCMYK = _fsdk.OutputPreview_e_ShowCMYK | |
| 如果设置,仅显示CMYK。 | |
| e_ShowDevice = _fsdk.OutputPreview_e_ShowDevice | |
| 如果设置,仅显示设备色彩。 | |
| e_ShowDeviceCMYK = _fsdk.OutputPreview_e_ShowDeviceCMYK | |
| 如果设置,仅显示DeviceCMYK。 | |
| e_ShowDeviceCMYKAndSpot = _fsdk.OutputPreview_e_ShowDeviceCMYKAndSpot | |
| 如果设置,仅显示DeviceCMYK和专色。 | |
| e_ShowDeviceGray = _fsdk.OutputPreview_e_ShowDeviceGray | |
| 如果设置,仅显示DeviceGray。 | |
| e_ShowDeviceN = _fsdk.OutputPreview_e_ShowDeviceN | |
| 如果设置,仅显示DeviceN。 | |
| e_ShowDeviceRGB = _fsdk.OutputPreview_e_ShowDeviceRGB | |
| 如果设置,仅显示DeviceRGB。 | |
| e_ShowGray = _fsdk.OutputPreview_e_ShowGray | |
| 如果设置,仅显示灰度。 | |
| e_ShowICCBasedCMYK = _fsdk.OutputPreview_e_ShowICCBasedCMYK | |
| 如果设置,仅显示ICCBased CMYK。 | |
| e_ShowICCBasedRGB = _fsdk.OutputPreview_e_ShowICCBasedRGB | |
| 如果设置,仅显示ICCBased RGB。 | |
| e_ShowImages = _fsdk.OutputPreview_e_ShowImages | |
| 如果设置,仅显示图像。 | |
| e_ShowLab = _fsdk.OutputPreview_e_ShowLab | |
| 如果设置,仅显示Lab。 | |
| e_ShowLineArt = _fsdk.OutputPreview_e_ShowLineArt | |
| 如果设置,仅显示线条艺术。 | |
| e_ShowNotDeviceCMYK = _fsdk.OutputPreview_e_ShowNotDeviceCMYK | |
| 如果设置,仅显示非DeviceCMYK。 | |
| e_ShowNotDeviceCMYKOrSpot = _fsdk.OutputPreview_e_ShowNotDeviceCMYKOrSpot | |
| 如果设置,仅显示DeviceCMYK或专色。 | |
| e_ShowRegistrationColor = _fsdk.OutputPreview_e_ShowRegistrationColor | |
| 如果设置,仅显示套版色。 | |
| e_ShowRGB = _fsdk.OutputPreview_e_ShowRGB | |
| 如果设置,仅显示RGB。 | |
| e_ShowSmoothShades = _fsdk.OutputPreview_e_ShowSmoothShades | |
| 如果设置,仅显示平滑渐变。 | |
| e_ShowSolidColor = _fsdk.OutputPreview_e_ShowSolidColor | |
| 如果设置,仅显示纯色。 | |
| e_ShowSpotColor = _fsdk.OutputPreview_e_ShowSpotColor | |
| 如果设置,仅显示专色。 | |
| e_ShowText = _fsdk.OutputPreview_e_ShowText | |
| 如果设置,仅显示文本。 | |
此类可用于进行输出预览。输出预览是预览分色和测试不同色彩配置文件。 在使用此类之前,请确保函数 FoxitPDFSDKPython2.Library.SetDefaultICCProfilesPath 已被成功调用; 否则在使用此类进行输出预览时可能会出现意外错误或结果。 目前,此功能在Linux ARM和Mac ARM平台上不受支持。
| def FoxitPDFSDKPython2.OutputPreview.OutputPreview | ( | pdf_doc | ) |
构造函数,带参数。
| [in] | pdf_doc | 有效的PDF文档对象。 |
| def FoxitPDFSDKPython2.OutputPreview.OutputPreview | ( | other | ) |
构造函数,通过另一个输出预览对象。
| [in] | other | 另一个输出预览对象。 |
| def FoxitPDFSDKPython2.OutputPreview.EnableSimulateOverprint | ( | is_to_simulate_overprint | ) |
设置是否启用仿真叠印的标志。
如果不调用此函数,将使用默认值 true。
| [in] | is_to_simulate_overprint | true 表示仿真叠印。 false 表示不仿真叠印。 |
| def FoxitPDFSDKPython2.OutputPreview.GeneratePreviewBitmap | ( | page, | |
| matrix, | |||
| renderer | |||
| ) |
为PDF页面生成输出预览位图。
此函数将使用输入的 renderer 中指定的标志和选项以及当前输出预览对象的设置来渲染目标PDF页面, 然后返回最终的输出预览位图。此函数中的渲染过程不会影响输入的 renderer。
请确保函数 FoxitPDFSDKPython2.OutputPreview.SetSimulationProfile 已被成功调用;否则此函数将抛出 FoxitPDFSDKPython2.e_ErrUnsupported 。
| [in] | page | 有效的PDF页面对象。此PDF页面应该已被解析。 |
| [in] | matrix | 用于渲染的变换矩阵,通常由函数 FoxitPDFSDKPython2.PDFPage.GetDisplayMatrix 返回。 |
| [in] | renderer | 有效的渲染器对象。 |
| def FoxitPDFSDKPython2.OutputPreview.GetPlates | ( | colorant_type | ) |
获取分色版。
如果要获取印刷色着色剂类型的版,请确保函数 FoxitPDFSDKPython2.OutputPreview.SetSimulationProfile 已被成功调用; 否则不会检索到印刷色着色剂类型的版。
| [in] | colorant_type | 着色剂类型。请参考从 FoxitPDFSDKPython2.OutputPreview.e_ColorantTypeProcess 开始的值,这应该是其中的一个值。 |
| def FoxitPDFSDKPython2.OutputPreview.GetSpotPlateColor | ( | plate_name | ) |
获取版的颜色值。
此函数仅对专色着色剂类型的版有用。
| [in] | plate_name | 版名称。这可以从函数 FoxitPDFSDKPython2.OutputPreview.GetPlates 返回的字符串数组中检索。 |
| def FoxitPDFSDKPython2.OutputPreview.IsChecked | ( | plate_name | ) |
检查版是否被选中。
对于新构造的输出预览对象,所有版都不被选中。
| [in] | plate_name | 版名称。这可以从函数 FoxitPDFSDKPython2.OutputPreview.GetPlates 返回的字符串数组中检索。 |
| def FoxitPDFSDKPython2.OutputPreview.IsEmpty | ( | ) |
检查当前对象是否为空。
当前对象为空时,表示当前对象是无用的。
| def FoxitPDFSDKPython2.OutputPreview.SetCheckStatus | ( | plate_name, | |
| to_check | |||
| ) |
设置版的检查状态。
| [in] | plate_name | 版名称。这可以从函数 FoxitPDFSDKPython2.OutputPreview.GetPlates 返回的字符串数组中检索。 |
| [in] | to_check | 检查状态:true 表示检查该版,false 表示不检查该版。 |
| def FoxitPDFSDKPython2.OutputPreview.SetShowType | ( | show_type | ) |
设置显示类型。
如果没有为当前对象设置显示类型,在调用函数 FoxitPDFSDKPython2.OutputPreview.GeneratePreviewBitmap 时, 默认将使用值 FoxitPDFSDKPython2.OutputPreview.e_ShowAll 。
| [in] | show_type | 显示类型。请参考从 FoxitPDFSDKPython2.OutputPreview.e_ShowAll 开始的值,这应该是其中的一个值。 |
| def FoxitPDFSDKPython2.OutputPreview.SetSimulationProfile | ( | icc_profile_path | ) |
设置仿真ICC配置文件路径。
如果输入ICC配置文件的色彩空间不是RGB/Gray/CMYK之一,此函数将抛出 FoxitPDFSDKPython2.e_ErrUnsupported 。
在调用函数 FoxitPDFSDKPython2.OutputPreview.GeneratePreviewBitmap 之前,应成功调用此函数。
| [in] | icc_profile_path | 用于输出预览仿真配置文件的ICC配置文件的文件路径。 |